package com.fu.reflect;

/**
 * @author 付大大
 * @description
 * @create 2021-01-17 11:44
 */
public class Test {
    public static void main(String[] args) throws ClassNotFoundException {
        Class<?> aClass = Class.forName("com.fu.reflect.Student");
        System.out.println(aClass);


        Class<Student> studentClass = Student.class;
        System.out.println(studentClass);

        Student student = new Student();
        Class<? extends Student> aClass1 = student.getClass();
        System.out.println(aClass1);


        System.out.println(aClass==studentClass);
        System.out.println(studentClass==aClass1);
    }
}
